home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 11248 < prev    next >
Encoding:
Text File  |  1996-08-05  |  2.0 KB  |  45 lines

  1. Path: news.bridge.net!news
  2. From: psycho@bridge.net (Gary Thompson)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: CONVERTING INTEGER TO ASCII??????
  5. Date: Fri, 22 Mar 1996 20:07:24 GMT
  6. Organization: BridgenetLC - 305.374.3031 - 100 S. Biscayne Blvd, Miami 
  7. Message-ID: <4iv1a6$pl2@news.bridge.net>
  8. References: <4i17r9$2kn@maltese.eag.unisysgsg.com> <4ic9ll$cfp@news.bridge.net> <danpop.827013499@rscernix>
  9. Reply-To: psycho@bridge.net
  10. NNTP-Posting-Host: ppp-ftl1-30.bridge.net
  11. X-Newsreader: Forte Free Agent 1.0.81
  12.  
  13. danpop@mail.cern.ch (Dan Pop) wrote:
  14.  
  15. >In <4ic9ll$cfp@news.bridge.net> psycho@bridge.net (Gary Thompson) writes:
  16.  
  17. >>buff=itoa(intvalue,buff,10); (I think...)
  18.  
  19. >And you're wrong.  There is no itoa function in the C language.
  20.  
  21. >K&R2 contains such a function (as an example), at page 64, but it has
  22. >only two arguments :-)
  23.  
  24. Then what is this...  (badly copied from my C compiler)
  25. ª----------------------------------------------------------------------------
  26. ª                                                                              _
  27. ª  Include:  <stdlib.h>                                                        _
  28. ª                                                                              _
  29. ª  Syntax:   char *itoa( int value, char *string, int radix );                 _
  30. ª            char *ltoa( long value, char *string, int radix );                _
  31. ª            char *ultoa( unsigned long value, char *string, int radix );      _
  32. ª                                                                              _
  33. ª  Returns:  a pointer to <string>.                                            _
  34. ª                                    --                                       
  35. ª ___________________________________________________________________________ª
  36.  
  37.  
  38.                               Gary Thompson
  39.                                "The Psycho"
  40.                              psycho@bridge.net
  41.                         72607.1365@compuserve.com
  42.                        http://www.bridge.net/~psycho
  43.            HTTP://ourworld.compuserve.com/homepages/psychotps
  44.  
  45.